//
//  UpdateSuccessViewController.m
//  DA_V
//
//  Created by 周季阳 on 15/4/22.
//  Copyright (c) 2015年 zhouhai. All rights reserved.
//

#import "UpdateSuccessViewController.h"
#import "InterFace.h"
#import "UIViewAdditions.h"

@interface UpdateSuccessViewController ()

@end

@implementation UpdateSuccessViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [self colorWithHexString:@"#F5F5F5"];
    [self initNav];
    navTitle.text = @"修改成功";
    [self initUI];
}
#pragma mark - initUI
-(void)initUI{
    
    UIView *backgroundView = [[UIView alloc]initWithFrame:CGRectMake(0, navView.bottom, SCREEN_WIDTH, SCREEN_HEIGHT*0.6)];
    backgroundView.backgroundColor = [UIColor whiteColor];
    backgroundView.userInteractionEnabled = YES;
    [self.view addSubview:backgroundView];
    
    UIImageView *imageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"shape"]];
    imageView.frame = CGRectMake(0.294*SCREEN_WIDTH, 150, 22, 23);
    [backgroundView addSubview:imageView];
    
    
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(imageView.right, 145, 150, 30)];
    label.text = @"密码修改成功";
    label.textAlignment = NSTextAlignmentLeft;
    label.textColor = [UIColor blackColor];
    label.font = [UIFont boldSystemFontOfSize:20];
    [backgroundView addSubview:label];
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(20,label.bottom+100,SCREEN_WIDTH*0.875, 0.116*SCREEN_WIDTH);
    [button setBackgroundImage:[UIImage imageNamed:@"backz"] forState:UIControlStateNormal];
    [button setBackgroundImage:[UIImage imageNamed:@"backz1"] forState:UIControlStateHighlighted];
    [button addTarget:self action:@selector(clickBackRoot) forControlEvents:UIControlEventTouchUpInside];
    button.backgroundColor = [UIColor whiteColor];
    [backgroundView addSubview:button];
    
}
#pragma mark - 返回到上一个界面
-(void)clickBackBtn{
    [self.navigationController popViewControllerAnimated:YES];
}
#pragma mark - 返回到首页
-(void)clickBackRoot{
    [self.navigationController popToRootViewControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */

@end
